const { connection } = require('../../../model/database')
module.exports = (req, res) => {
    
    var sql = 'select * from class;'

    connection.query(sql, async (error, reslut) => {
        if (error) {
            console.log('查询错误');
            return
        }
        res.send(reslut)
    })
}